Optimal. Leaf size=84 \[ -\frac{p (b d-a e)^2 \log (a+b x)}{2 b^2 e}+\frac{(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac{p x (b d-a e)}{2 b}-\frac{p (d+e x)^2}{4 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0371142, antiderivative size = 84, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {2395, 43} \[ -\frac{p (b d-a e)^2 \log (a+b x)}{2 b^2 e}+\frac{(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac{p x (b d-a e)}{2 b}-\frac{p (d+e x)^2}{4 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2395
Rule 43
Rubi steps
\begin{align*} \int (d+e x) \log \left (c (a+b x)^p\right ) \, dx &=\frac{(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac{(b p) \int \frac{(d+e x)^2}{a+b x} \, dx}{2 e}\\ &=\frac{(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}-\frac{(b p) \int \left (\frac{e (b d-a e)}{b^2}+\frac{(b d-a e)^2}{b^2 (a+b x)}+\frac{e (d+e x)}{b}\right ) \, dx}{2 e}\\ &=-\frac{(b d-a e) p x}{2 b}-\frac{p (d+e x)^2}{4 e}-\frac{(b d-a e)^2 p \log (a+b x)}{2 b^2 e}+\frac{(d+e x)^2 \log \left (c (a+b x)^p\right )}{2 e}\\ \end{align*}
Mathematica [A] time = 0.0455267, size = 82, normalized size = 0.98 \[ -\frac{a^2 e p \log (a+b x)}{2 b^2}+\frac{d (a+b x) \log \left (c (a+b x)^p\right )}{b}+\frac{1}{2} e x^2 \log \left (c (a+b x)^p\right )+\frac{a e p x}{2 b}-d p x-\frac{1}{4} e p x^2 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.091, size = 83, normalized size = 1. \begin{align*} d\ln \left ( c \left ( bx+a \right ) ^{p} \right ) x-dpx+{\frac{dpa\ln \left ( bx+a \right ) }{b}}+{\frac{{x}^{2}e\ln \left ( c{{\rm e}^{p\ln \left ( bx+a \right ) }} \right ) }{2}}-{\frac{ep{x}^{2}}{4}}-{\frac{{a}^{2}pe\ln \left ( bx+a \right ) }{2\,{b}^{2}}}+{\frac{apex}{2\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10274, size = 100, normalized size = 1.19 \begin{align*} -\frac{1}{4} \, b p{\left (\frac{b e x^{2} + 2 \,{\left (2 \, b d - a e\right )} x}{b^{2}} - \frac{2 \,{\left (2 \, a b d - a^{2} e\right )} \log \left (b x + a\right )}{b^{3}}\right )} + \frac{1}{2} \,{\left (e x^{2} + 2 \, d x\right )} \log \left ({\left (b x + a\right )}^{p} c\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02251, size = 205, normalized size = 2.44 \begin{align*} -\frac{b^{2} e p x^{2} + 2 \,{\left (2 \, b^{2} d - a b e\right )} p x - 2 \,{\left (b^{2} e p x^{2} + 2 \, b^{2} d p x +{\left (2 \, a b d - a^{2} e\right )} p\right )} \log \left (b x + a\right ) - 2 \,{\left (b^{2} e x^{2} + 2 \, b^{2} d x\right )} \log \left (c\right )}{4 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.42708, size = 116, normalized size = 1.38 \begin{align*} \begin{cases} - \frac{a^{2} e p \log{\left (a + b x \right )}}{2 b^{2}} + \frac{a d p \log{\left (a + b x \right )}}{b} + \frac{a e p x}{2 b} + d p x \log{\left (a + b x \right )} - d p x + d x \log{\left (c \right )} + \frac{e p x^{2} \log{\left (a + b x \right )}}{2} - \frac{e p x^{2}}{4} + \frac{e x^{2} \log{\left (c \right )}}{2} & \text{for}\: b \neq 0 \\\left (d x + \frac{e x^{2}}{2}\right ) \log{\left (a^{p} c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27378, size = 192, normalized size = 2.29 \begin{align*} \frac{{\left (b x + a\right )} d p \log \left (b x + a\right )}{b} + \frac{{\left (b x + a\right )}^{2} p e \log \left (b x + a\right )}{2 \, b^{2}} - \frac{{\left (b x + a\right )} a p e \log \left (b x + a\right )}{b^{2}} - \frac{{\left (b x + a\right )} d p}{b} - \frac{{\left (b x + a\right )}^{2} p e}{4 \, b^{2}} + \frac{{\left (b x + a\right )} a p e}{b^{2}} + \frac{{\left (b x + a\right )} d \log \left (c\right )}{b} + \frac{{\left (b x + a\right )}^{2} e \log \left (c\right )}{2 \, b^{2}} - \frac{{\left (b x + a\right )} a e \log \left (c\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]